package magic8;

import java.util.Random;

public class ResponseCreator {
	public static Random random = new Random(System.currentTimeMillis());
	
	public static int pick1or2(){
		return random.nextInt(2)+1;
	}
	
	public static String getResponse(String message){
		if(message.equals("Who is the best writer?")){
			return "Um, Shishinata!";
		}
		
		if(message.contains("school")){
			return "Are you trying to cheat?";
		}
		
		if(message.endsWith("???")){
			return "You must REALLY want to know the answer!";
		}
			
		
		int random1or2 = pick1or2();
		if(random1or2 == 1){
			return "What do you think I am, a genious?";
		}else{
			return "Umm, I don't know, you figure it out!";
		}
		
		
	}
}
